package com.hsc.yalebao.adapter;

import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.hsc.yalebao.model.ChatMsgEntity;
import java.util.ArrayList;
import java.util.HashMap;

public class TouzhuListAdapter extends BaseAdapter
{
  String TAG = "TouzhuListAdapter";
  private Context context;
  int count = 1;
  ViewHolder holder = null;
  private LayoutInflater inflater;
  private ArrayList<ChatMsgEntity> list;
  HashMap<Integer, View> mapView = new HashMap();

  public TouzhuListAdapter(Context paramContext, ArrayList<ChatMsgEntity> paramArrayList)
  {
    this.context = paramContext;
    this.inflater = LayoutInflater.from(paramContext);
    this.list = paramArrayList;
  }

  public int getCount()
  {
    if (this.list == null)
      return 0;
    return this.list.size();
  }

  public Object getItem(int paramInt)
  {
    return this.list.get(paramInt);
  }

  public long getItemId(int paramInt)
  {
    return paramInt;
  }

  @SuppressLint({"NewApi"})
  public View getView(int paramInt, View paramView, ViewGroup paramViewGroup)
  {
    if (paramView == null)
    {
      this.holder = new ViewHolder();
      paramView = this.inflater.inflate(2130903181, null);
      this.holder.txt_qihao = ((TextView)paramView.findViewById(2131100243));
      this.holder.txt_type = ((TextView)paramView.findViewById(2131100244));
      this.holder.txt_jine = ((TextView)paramView.findViewById(2131100245));
      paramView.setTag(this.holder);
    }
    while (true)
    {
      if ((ChatMsgEntity)this.list.get(paramInt) == null);
      return paramView;
      this.holder = ((ViewHolder)paramView.getTag());
    }
  }

  public void setDatas(ArrayList<ChatMsgEntity> paramArrayList)
  {
    this.list = paramArrayList;
  }

  public class ViewHolder
  {
    private TextView txt_jine;
    private TextView txt_qihao;
    private TextView txt_type;

    public ViewHolder()
    {
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.adapter.TouzhuListAdapter
 * JD-Core Version:    0.6.2
 */